﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A35 RID: 2613
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LeaveTrialActivityScRsp : IMessage<LeaveTrialActivityScRsp>, IMessage, IEquatable<LeaveTrialActivityScRsp>, IDeepCloneable<LeaveTrialActivityScRsp>, IBufferMessage
	{
		// Token: 0x170020FB RID: 8443
		// (get) Token: 0x060074FF RID: 29951 RVA: 0x00138500 File Offset: 0x00136700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LeaveTrialActivityScRsp> Parser
		{
			get
			{
				return LeaveTrialActivityScRsp._parser;
			}
		}

		// Token: 0x170020FC RID: 8444
		// (get) Token: 0x06007500 RID: 29952 RVA: 0x00138507 File Offset: 0x00136707
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LeaveTrialActivityScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170020FD RID: 8445
		// (get) Token: 0x06007501 RID: 29953 RVA: 0x00138519 File Offset: 0x00136719
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LeaveTrialActivityScRsp.Descriptor;
			}
		}

		// Token: 0x06007502 RID: 29954 RVA: 0x00138520 File Offset: 0x00136720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveTrialActivityScRsp()
		{
		}

		// Token: 0x06007503 RID: 29955 RVA: 0x00138528 File Offset: 0x00136728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveTrialActivityScRsp(LeaveTrialActivityScRsp other) : this()
		{
			this.stageId_ = other.stageId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007504 RID: 29956 RVA: 0x00138559 File Offset: 0x00136759
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveTrialActivityScRsp Clone()
		{
			return new LeaveTrialActivityScRsp(this);
		}

		// Token: 0x170020FE RID: 8446
		// (get) Token: 0x06007505 RID: 29957 RVA: 0x00138561 File Offset: 0x00136761
		// (set) Token: 0x06007506 RID: 29958 RVA: 0x00138569 File Offset: 0x00136769
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x170020FF RID: 8447
		// (get) Token: 0x06007507 RID: 29959 RVA: 0x00138572 File Offset: 0x00136772
		// (set) Token: 0x06007508 RID: 29960 RVA: 0x0013857A File Offset: 0x0013677A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06007509 RID: 29961 RVA: 0x00138583 File Offset: 0x00136783
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LeaveTrialActivityScRsp);
		}

		// Token: 0x0600750A RID: 29962 RVA: 0x00138591 File Offset: 0x00136791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LeaveTrialActivityScRsp other)
		{
			return other != null && (other == this || (this.StageId == other.StageId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600750B RID: 29963 RVA: 0x001385D0 File Offset: 0x001367D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600750C RID: 29964 RVA: 0x00138628 File Offset: 0x00136828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600750D RID: 29965 RVA: 0x00138630 File Offset: 0x00136830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600750E RID: 29966 RVA: 0x0013863C File Offset: 0x0013683C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.StageId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.StageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600750F RID: 29967 RVA: 0x00138698 File Offset: 0x00136898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007510 RID: 29968 RVA: 0x001386F0 File Offset: 0x001368F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LeaveTrialActivityScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007511 RID: 29969 RVA: 0x00138740 File Offset: 0x00136940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007512 RID: 29970 RVA: 0x0013874C File Offset: 0x0013694C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.StageId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002C9B RID: 11419
		private static readonly MessageParser<LeaveTrialActivityScRsp> _parser = new MessageParser<LeaveTrialActivityScRsp>(() => new LeaveTrialActivityScRsp());

		// Token: 0x04002C9C RID: 11420
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002C9D RID: 11421
		public const int StageIdFieldNumber = 14;

		// Token: 0x04002C9E RID: 11422
		private uint stageId_;

		// Token: 0x04002C9F RID: 11423
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04002CA0 RID: 11424
		private uint retcode_;
	}
}
